Skip to content

fix: aria-live and aria-describedby on fieldset element. #431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 4, 2025

Conversation

m-maillot
Copy link
Contributor

No description provided.

@m-maillot m-maillot force-pushed the fix/accessibility-fieldset branch from 8fdc5da to 878247c Compare June 20, 2025 07:42
@@ -197,18 +197,11 @@ export const Fieldset = memo(
<div
className={fr.cx("fr-messages-group")}
id={messagesWrapperId}
aria-live="assertive"
aria-live={state === "error" ? "assertive" : undefined}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le aria-live assertive est à renseigner seulement si c'est une erreur.

@ddecrulle
Copy link
Collaborator

ddecrulle commented Jul 3, 2025

Désolé pour le délais, je peux pas merge en l'état car ça introduit un breaking change : les id des états error et successsont changés.

@m-maillot m-maillot force-pushed the fix/accessibility-fieldset branch from 878247c to 4758c34 Compare July 3, 2025 14:28
@m-maillot
Copy link
Contributor Author

Merci pour ton retour @ddecrulle.

J'ai modifié ma PR pour ne pas avoir d'impact sur les id des états error et success. Cela n'impacte pas le correctif sur le aria-live assertive.

@m-maillot m-maillot force-pushed the fix/accessibility-fieldset branch from 4758c34 to daafac4 Compare July 3, 2025 14:31
case "success":
return successDescId;
case "info":
return infoDescId;
Copy link
Contributor Author

@m-maillot m-maillot Jul 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'ai ajouté un id sur l'info car quand on a une info, il faut la lier avec le aria-describedby

@ddecrulle ddecrulle merged commit d2f3414 into codegouvfr:main Jul 4, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants